solving binomial distribution problems